home *** CD-ROM | disk | FTP | other *** search
- ' Program EX_0206.BAS
- ' Listing 2B - see documentation in TUTOR.SSS
-
- declare function rnx (m, s)
-
- rem $include: 'SSSB.H'
-
- title$ = "Start of call is at "
- pt = rnx(7, 4)
- do
- print using "####.##"; title$; pt;
- if RA < .25 then
- pt = pt + ER(2, 2)
- else
- pt = pt + TR(1, 3, 4)
- end if
- print using "####.##"; " ends at "; pt
- pt = pt + rnx(7, 4)
- loop while (pt <= 120)
-
- function rnx (m, s)
- do
- x = RN(m, s)
- loop while x <= 0!
- rnx = x
- end function
-